package com.ruoyi.parkingcar.controller;


import com.ruoyi.parkingcar.domain.RecordsAndCustomer;
import com.ruoyi.parkingcar.service.ParkRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/parkingcar/Records")
public class ParkRecordsController {

    @Autowired
    private ParkRecordsService parkRecordsService;

    //查询
    @RequestMapping("/list")
    public List<RecordsAndCustomer> select(RecordsAndCustomer recordsAndCustomer) {
        return parkRecordsService.selectParkRecords(recordsAndCustomer);
    }


}
